package com.imooc.socialecom.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author socialecom
 * @since 2024-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Item对象", description = "")
public class Item implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private Long sellerId;

    @TableField(exist = false)
    private String sellerName;

    private Long categoryId;

    @TableField(exist = false)
    private String category;

    private Long brandId;

    @TableField(exist = false)
    private String brand;

    @TableField(exist = false)
    private List<Sku> skuList = new ArrayList<>();

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
